package com.zking.service.impl.lp;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zking.dao.domain.Subscription;
import com.zking.dao.domain.User;
import com.zking.dao.mapper.lp.SubscMapper;
import com.zking.service.lp.SubscBasedao;

@Service
public class BasedaoSubsc implements SubscBasedao{
	@Autowired
	SubscMapper subscmapper;
	
	@Override
	public int addSubsc(Subscription subscription) {
		int i = subscmapper.addSubsc(subscription);
		return i;
	}

	@Override
	public List<Map<String, Object>> mlist(Integer start, Integer limit) {
		List<Map<String, Object>> i = subscmapper.mlist(start,limit);
		return i;
	}

	@Override
	public long totalSc() {
		long i = subscmapper.totalSc();
		return i;
	}

	@Override
	public String totalSc2() {
		String i = subscmapper.totalSc2();
		return i;
	}

	@Override
	public User userlp(User user) {
		User i = subscmapper.userlp(user);
		return i;
	}


}
